CROSS_COMPILE =  
CC	=	$(CROSS_COMPILE)gcc
AR	=	$(CROSS_COMPILE)ar
LD	=	$(CROSS_COMPILE)ld
RM	=	rm	

ROOTDIR = $(PWD)

CFLAGS = -Wall
CFLAGS = -I ../src
CFLAGS += -I ../src/application
CFLAGS += -I ../src/decadriver
CFLAGS += -I ../src/platform
CFLAGS += -I ../src/compiler
CFLAGS += -I ../Libraries/Tegra_StdPeriph_Driver/inc/

LD_FLAGS := -lpthread -lm -ldl

#TARGET :=  ../bin/deca-trek
TARGET :=  deca-trek

OBJS = main.o
LIBS = ../bin/libDeca.a

#main.o:main.c

#.PHONY: all  install  clean $(OBJS)	// error
.PHONY: all  install  clean
    	
(TARGET):$(OBJS) $(LIBS)
	$(CC) -o $(TARGET) $^ $(LD_FLAGS) $(CFLAGS)
	
clean:
	$(RM) -rf $(TARGET) *.o

#$(CC) -o $(TARGET) $(OBJS) $(LD_FLAGS) $(CFLAGS)

